/* 插画分类列表页面样式 */
.illustration-gallery {
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  padding-bottom: 100px;
}

/* 头部横幅样式 */
.header-banner {
  width: 100%;
  padding: 60px 20px;
  text-align: center;
  background: #935ec7;
}

.banner-content {
  max-width: 1200px;
  margin: 0 auto;
}

.banner-title {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* 主要展示区域样式 */
.main-showcase {
  width: 100%;
  padding: 80px 20px;
  background: url('@/assets/galleryBg.svg') no-repeat center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.showcase-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.showcase-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.showcase-text {
  flex: 1;
  max-width: 500px;
}

.showcase-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.showcase-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.showcase-visual {
  flex: 1;
  height: 400px;
  position: relative;
}

.visual-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 浮动图标动画 */
.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-icons .icon-item {
  position: absolute;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: float 3s ease-in-out infinite;
  transition: all 0.3s ease;
  cursor: pointer;
}

.icon-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.icon-item .anticon {
  font-size: 20px;
  color: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.icon-item img {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* 分类列表样式 */
.category-section {
  background: #f8fafc;
  padding: 80px 20px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

/* 搜索区域样式 */
.search-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 16px;
}

.search-container .ant-input-search {
  max-width: 600px;
  width: 100%;
}

.search-result-tip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.search-result-tip span {
  padding: 4px 12px;
  background: #f0f0f0;
  border-radius: 16px;
  border: 1px solid #d9d9d9;
}

/* 管理工具栏样式 */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* 加载状态样式 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 空状态样式 */
.empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 加载更多状态样式 */
.loading-more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  gap: 16px;
}

.loading-more p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* 没有更多数据样式 */
.no-more-data {
  padding: 40px 0;
  text-align: center;
}

.no-more-text {
  color: #999;
  font-size: 14px;
  padding: 0 20px;
  background: #f8fafc;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
}

.category-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.category-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 分类管理按钮样式 */
.category-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.category-actions .ant-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.category-actions .ant-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.category-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  padding: 15px;
}

.grid-item {
  overflow: hidden;
  background-color: #ffffff;
  position: relative;
}

.grid-item:nth-child(1) {
  border-top-left-radius: 8px;
}

.grid-item:nth-child(2) {
  border-top-right-radius: 8px;
}

.grid-item:nth-child(3) {
  border-bottom-left-radius: 8px;
}

.grid-item:nth-child(4) {
  border-bottom-right-radius: 8px;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

/* 暂无预览样式 */
.no-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 8px;
}

.no-preview-icon {
  color: #cbd5e0;
  margin-bottom: 8px;
}

.no-preview-text {
  font-size: 0.9rem;
  color: #a0aec0;
  margin: 0;
  font-weight: 500;
}

.category-info {
  padding: 20px;
}

.category-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 8px;
  line-height: 1.4;
}

.category-description {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 8px 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-count {
  font-size: 0.9rem;
  color: #718096;
  margin: 0;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .banner-title {
    font-size: 2rem;
  }

  .banner-description {
    font-size: 1rem;
  }

  .showcase-content {
    flex-direction: column;
    gap: 40px;
  }

  .showcase-title {
    font-size: 1.8rem;
  }

  .showcase-visual {
    height: 300px;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .category-card {
    max-width: none;
  }

  .main-showcase {
    padding: 40px 20px;
  }

  .category-section {
    padding: 40px 20px;
  }

  .search-container .ant-input-search {
    max-width: 100%;
  }

  .search-result-tip {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* 移动端加载更多样式优化 */
  .loading-more {
    padding: 30px 0;
  }

  .no-more-data {
    padding: 30px 0;
  }
}

@media (max-width: 480px) {
  .header-banner {
    padding: 40px 15px;
  }

  .banner-title {
    font-size: 1.5rem;
  }

  .showcase-title {
    font-size: 1.5rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .search-section {
    margin-bottom: 20px;
  }

  .search-container {
    padding: 0 10px;
  }

  .search-result-tip span {
    font-size: 12px;
    padding: 6px 10px;
  }
}

.category-card:nth-child(1) {
  animation-delay: 0.1s;
}
.category-card:nth-child(2) {
  animation-delay: 0.2s;
}
.category-card:nth-child(3) {
  animation-delay: 0.3s;
}
.category-card:nth-child(4) {
  animation-delay: 0.4s;
}
.category-card:nth-child(5) {
  animation-delay: 0.5s;
}
.category-card:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
